package com.woniu51.k15demo.mapper;

import com.woniu51.k15demo.entity.Permission;
import com.woniu51.k15demo.vo.PermissionTree;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    List<Permission> selectPermissionByNameLike(String name);

    List<Permission> queryFirstLevelPermission();

    List<PermissionTree> queryPermissionTreeLevel1();

    List<PermissionTree> queryPermissionsByManagerId(Long userId);

    Set<String> queryInterfacePermissionByManagerId(Long id);

}